{extend name="common/index" /}
{block name="style"}
<link rel="stylesheet" href="__TEMPLATE__/mobile/index/css/index.css" type="text/css">
<link rel="stylesheet" href="__TEMPLATE__/mobile/index/css/member.css" type="text/css">
<script type="text/javascript" src="__TEMPLATE__/sysme/js/user_name.js"></script>
<style>
	body{background:#fafafa;}
	.dj_header{height:40px;line-height:40px;display:flex;margin-top:44px;border-bottom:1px solid #ccc;width:100%;}
	.dj_header p{flex:1;text-align: center;color:#282828;font-size:14px;}
	
    .member_mc{width:100%;height:40px;line-height:40px;border-bottom:1px solid #ccc;color:#666;display:flex;}
    .member_mc p{flex:1;text-align: center;font-size:13px;}
	.info{width:90%;background:#eeeeee;display:none;font-size:14px;line-height:25px;margin:10px auto;}
	.info>div{display:flex;width:100%;border-bottom:1px solid #ccc;height:40px;line-height:40px;}
	.info div span{flex:1;text-align: center;}
     
</style>
{/block}
{block name="body"}
<div class="dj_header">
	<p>等级名称</p>
	<p >晋升赠送彩金</p>
	<p >每月赠送彩金</p>
	<p>更多</p>
</div>
	{foreach($usclass as $item)}
 <div class="member_mc" id="{$item.id}"><p>{$item.class_name}</p><p style="color:#ee5124;" class="deleate_d" data="{$item.dividend}"></p><p style="color:#ee5124;" class="deleate_d" data="{$item.mearmoney}"></p><p><img src="__TEMPLATE__/mobile/index/img/dj_xl.png" style="width:25px;margin-top:7px;"></p></div>
 <div></div>
 <div class="info" id="info_{$item.id}">
		<div><span style="color:#666;">提升等级充值量</span><span style="color:#ee5124;" class="deleate_d" data="{$item.czl}"></span></div>
		<div><span style="color:#666;"> 提升等级洗码量</span><span style="color:#ee5124;" class="deleate_d" data="{$item.xml}"></span></div>
		<div><span style="color:#666;">投注最低彩额</span><span style="color:#ee5124;" class="deleate_d" data="{$item.zxtzxd}"></span></div>
 </div>
  {/foreach}
 <script>
 	allDelete=document.getElementsByClassName('deleate_d')
	for(var i=0;i<allDelete.length;i++){
		var del_ss=parseInt(allDelete[i].getAttribute('data')).toFixed(0)
		allDelete[i].innerHTML=del_ss
		
	}
 	 $(".member_mc").click(function(){
    	$(".info").slideUp(200)
    	
    	var identify=$(this).attr('id')
		if($('#info_'+identify).css('display')=='none'){
		  $('#info_'+identify).slideDown(200)
		  
	    }else{
			$('#info_'+identify).slideUp(200)
           
		}
	})
 	 
 </script>

 {/block}
